// 仓库的配置
import Vue from "vue";
import Vuex from 'vuex'

// 使用
Vue.use(Vuex)

// 引入小仓库
import home from "./home";
import search from "./search";
import detail from "./detail";
import user from "./user";
import shopcart from "./shopcart";
import trade from "./trade";


// 对外暴露仓库
export default new Vuex.Store({
//   模块式开发：modules
modules:{
    home,
    search,
    detail,
    user,
    shopcart,
    trade,
}
})